package com.course.gateway.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @PROJECT_NAME: course
 * @DESCRIPTION: 网关白名单配置
 * @Author: 涂玄武
 * @DATE: 2021/6/24 9:39
 */
@Component
@ConfigurationProperties(prefix = "secure.ignore")
public class IgnoreUrlsConfig {

    private List<String> urls;

    public List<String> getUrls() {
        return urls;
    }

    public void setUrls(List<String> urls) {
        this.urls = urls;
    }

    @Override
    public String toString() {
        final StringBuffer sb = new StringBuffer("IgnoreUrlsConfig{");
        sb.append("urls=").append(urls);
        sb.append('}');
        return sb.toString();
    }
}
